import './assets/main.css'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from 'axios' // 新增导入
import App from './App.vue'
import router from './router'

const app = createApp(App)

// 全局axios配置
axios.defaults.baseURL = 'http://localhost:8181' // 后端基础地址
app.config.globalProperties.$axios = axios // 挂载到全局

app.use(createPinia())
app.use(router)
app.use(ElementPlus)
app.mount('#app')